package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.device.model.entity.AppVersion;
import com.wtwd.device.model.vo.AppVersionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author mjy
 * @date 2021/11/09
 * @description
 */
@Mapper
public interface AppVersionMapper {

    IPage<AppVersionVo> getPageAppVersionByLikeNameNotInType(@Param("appName") String appName,@Param("type")Integer type,@Param("page") Page<Object> page);

    List<AppVersion> getAppVersionByConditions(AppVersion searchVersion);

    Integer addAppVersion(AppVersion appVersion);

    Integer updateAppVersion(AppVersion appVersion);

    Integer deleteAppVersionByAppId(@Param("appId") long appId);

    Integer bathAddAppVersion(@Param("list") ArrayList<AppVersion> appVersions);
}
